<?php
if(@$_GET['limba']){
	switch($_GET['limba']){
		case "ro":
			include("limba/ro/limba.php");
		break;
		case "en":
			include("limba/en/limba.php");
		break;
		default:
			include("limba/ro/limba.php");
		break;
	}
}else{
	include("includes/limba/ro/limba.php");
}

function gtJson($url,$postName,$data){
	$data_string = json_encode($data);
	$ch=curl_init($url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
	curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
	curl_setopt($ch, CURLOPT_POSTFIELDS, array($postName =>$data_string));
	$json_response = curl_exec($ch);
	#$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
	curl_close($ch);
}


function culoare($intensitate){
	switch($intensitate){
		case "1":
			echo "#2AE212";
		break;
		case "2":
			echo "#11E347";
		break;
		case "3":
			echo "#11E595";
		break;
		case "4":
			echo "#11E6E5";
		break;
		case "5":
			echo "#119AE8";
		break;
		case "6":
			echo "#114BEA";
		break;
		case "7":
			echo "#2610EB";
		break;
		case "8":
			echo "#7710ED";
		break;
		case "9":
			echo "#CA10EF";
		break;
		case "10":
			echo "#F010C2";
		break;
		case "11":
			echo "#F21070";
		break;
		case "12":
			echo "#F40F1C";
		break;
	}
}

?>